package com.car.dal.dao.recruitment;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgRecruitmentPeople;
import com.car.util.Page;

public class RecruitmentPeopleDaoImp extends IbatisCommonDao<TgRecruitmentPeople, Long> implements RecruitmentPeopleDao{

	@Override
	public List<TgRecruitmentPeople> getTgRecruitPeopleByType(
			TgRecruitmentPeople tgRecruitmentPeople, Page page) {
		tgRecruitmentPeople.setFirstrownum(page.getFirstrownum());
		tgRecruitmentPeople.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgRecruitmentPeople.class, "getTgRecruitPeopleByType", tgRecruitmentPeople);
	}

	@Override
	public Integer getTgCountRecruitPeopleByType(
			TgRecruitmentPeople tgRecruitmentPeople) {
		return this.queryForInteger("getTgCountRecruitPeopleByType", tgRecruitmentPeople);
	}

	@Override
	public List<TgRecruitmentPeople> getTgRecruitPeopleByType1(
			TgRecruitmentPeople tgRecruitmentPeople) {
		return this.queryForEntityList(TgRecruitmentPeople.class, "getTgRecruitPeopleByType1", tgRecruitmentPeople);
	}

	@Override
	public List<TgRecruitmentPeople> getTgRecruitPeopleByType2(
			TgRecruitmentPeople tgRecruitmentPeople) {
		return this.queryForEntityList(TgRecruitmentPeople.class, "getTgRecruitPeopleByType2", tgRecruitmentPeople);
	}

	@Override
	public List<TgRecruitmentPeople> getTgRecruitPeopleByType3(
			TgRecruitmentPeople tgRecruitmentPeople) {
		return this.queryForEntityList(TgRecruitmentPeople.class, "getTgRecruitPeopleByType3", tgRecruitmentPeople);
	}

	@Override
	public List<TgRecruitmentPeople> getSatisrecruitment(TgRecruitmentPeople tgRecruitment) {
		return this.queryForEntityList(TgRecruitmentPeople.class, "getTgRecruitPeopleByType4", tgRecruitment);
	}

}
